package coco.mcpspringboot.controller;

import coco.mcpspringboot.Info;
import coco.mcpspringboot.mcp.ParamInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@SuppressWarnings("SpringJavaAutowiredFieldsWarningInspection")
@RestController
@RequestMapping("param")
public class ParamInfoController {

  @Autowired
  private ParamInfoService paramInfoService;

  @GetMapping("info")
  public List<Info> info(String paramName) {
    return paramInfoService.info(paramName);
  }
}
